From b3f40b4e384d722d237f26a4cce70d60f4f8b95c Mon Sep 17 00:00:00 2001
From: nobody <nobody@github.com>
Date: Tue, 29 Dec 2020 23:00:00 +0800
Subject: [PATCH] rk3399-opp: added new cpu freq: 2.0Ghz/1.5Ghz

---
 ...9-opp-added-new-cpu-freq-2Ghz-1.5Ghz.patch | 60 +++++++++++++++++++
 1 file changed, 60 insertions(+)
 create mode 100644 target/linux/rockchip/patches-5.4/999-rk3399-opp-added-new-cpu-freq-2Ghz-1.5Ghz.patch

diff --git a/target/linux/rockchip/patches-5.4/999-rk3399-opp-added-new-cpu-freq-2Ghz-1.5Ghz.patch b/target/linux/rockchip/patches-5.4/999-rk3399-opp-added-new-cpu-freq-2Ghz-1.5Ghz.patch
new file mode 100644
index 0000000..c8a9620
--- /dev/null
+++ b/target/linux/rockchip/patches-5.4/999-rk3399-opp-added-new-cpu-freq-2Ghz-1.5Ghz.patch
@@ -0,0 +1,60 @@
+From bee28943396f9e75114f224c51230b8dcbf61010 Mon Sep 17 00:00:00 2001
+From: Lawrence-Tang <tangzongsheng@gmail.com>
+Date: Sat, 12 Dec 2020 19:14:09 +0800
+Subject: [PATCH] rk3399-opp: added new cpu freq: 2Ghz/1.5Ghz
+
+---
+ arch/arm64/boot/dts/rockchip/rk3399-opp.dtsi | 30 ++++++++++++++++++++
+ 1 file changed, 30 insertions(+)
+
+diff --git a/arch/arm64/boot/dts/rockchip/rk3399-opp.dtsi b/arch/arm64/boot/dts/rockchip/rk3399-opp.dtsi
+index d6f1095ab..b4a830d5e 100644
+--- a/arch/arm64/boot/dts/rockchip/rk3399-opp.dtsi
++++ b/arch/arm64/boot/dts/rockchip/rk3399-opp.dtsi
+@@ -33,6 +33,23 @@
+ 			opp-hz = /bits/ 64 <1416000000>;
+ 			opp-microvolt = <1125000>;
+ 		};
++		opp06 {
++			opp-hz = /bits/ 64 <1512000000>;
++			opp-microvolt = <1150000>;
++		};
++        /*
++         * Warning: The following options are only for testing and may damage the hardware
++         */
++        /*
++		opp07 {
++			opp-hz = /bits/ 64 <1608000000>;
++			opp-microvolt = <1225000>;
++		};
++		opp08 {
++			opp-hz = /bits/ 64 <1800000000>;
++			opp-microvolt = <1275000>;
++		};
++        */
+ 	};
+ 
+ 	cluster1_opp: opp-table1 {
+@@ -72,6 +89,19 @@
+ 			opp-hz = /bits/ 64 <1800000000>;
+ 			opp-microvolt = <1200000>;
+ 		};
++		opp08 {
++			opp-hz = /bits/ 64 <2016000000>;
++			opp-microvolt = <1250000>;
++		};
++        /*
++         * Warning: The following options are only for testing and may damage the hardware
++         */
++        /*
++		opp09 {
++			opp-hz = /bits/ 64 <2208000000>;
++			opp-microvolt = <1325000>;
++		};
++        */
+ 	};
+ 
+ 	gpu_opp_table: opp-table2 {
+-- 
+2.25.1
+
-- 
2.25.1

